<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Menu extends Model
{
    use SoftDeletes;
    protected $guarded = ['id'];

    public function subMenu()
    {
    	return $this->hasMany(Menu::class,'parent_id');
    }
}
